package com.heihx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "订单提交返回的数据模型")
public class OrderSubmitVO implements Serializable {
    //订单id
    @Schema(description = "订单id")
    private Long id;
    //订单号
    @Schema(description = "订单号")
    private String orderNumber;
    //订单金额
    @Schema(description = "订单金额")
    private BigDecimal orderAmount;
    //下单时间
    @Schema(description = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;
}
